<?=modules::run("website/big_images/installations");?>

    
  <div id="content-wrap">
  <div class="inner">

    <div class="left">

        <?=modules::run("subnavigation/submenu/profile");?>

    </div>

    
    <div class="right">

    <? // Breadcrumbs
        $breadcrumbs[] = array('display' => strtolower($this->lang->line('Members_Program')), 'controller' => 'insider', 'title' => $this->lang->line('Members_Program'));       
        $breadcrumbs[] = array('display' => 'your profile');       
        print modules::run("subnavigation/breadcrumb/view", $breadcrumbs);
    ?>                                                               

    <h1>Your Profile</h1>

    <p class="sansserif">&nbsp;</p>



    <? //= validation_errors(); ?>


<style>
.left_col{
	width:140px; 
	float:left; 
	clear:left
}

.right_col{
	margin-left:150px;
}
.right_col .default_mode{
	margin-bottom:0.5em;
	padding-bottom:0.5em;
	position:relative;
	min-height:36px;	
}
.right_col .default_mode .imgedit{
	position:absolute;
	left:220px;
	top:0px;
	display:none;
	cursor:pointer;
	background-color:#fff;
	padding:0 5px;
}
.right_col .default_mode:hover .imgedit{
	display:block;
}
.right_col .edit_mode{
	display:none;
	width:350px;
}
</style>


<form action="" method="post">
<div id="frmInsider">
	
    
	<div class="left_col">  
	    <p>Email</p>
    </div>
	<div class="right_col">  
		<div class="default_mode">
            <p><label id="lblemail" class="sansserif"><?= $userdetails['Email_UsersDetails']; ?></label></p>		
            <a class="imgedit" id="imgemail">Edit this</a>        
		</div>
        <div class="edit_mode">
            <p><input type="text" name="email" value="<?= $userdetails['Email_UsersDetails'] != "" ? $userdetails['Email_UsersDetails'] : set_value('email'); ?>" style="width: 280px;" class="inputbox" id="email"/></p>
            <p><input type="text" name="email2" value="Email Address (verification)" style="width: 280px;" class="inputbox" id="email2"/></p>
            <p><?=$this->lang->line('SavedNewEmail') ?></p>
            <p class="error"></p>
            <p><img class="imgsubmit" id="imgsubemail" style="cursor: pointer;" src="<?=base_url()?>assets/website/images/buttons<?=INSTANCE_FILE_SUFFIX ?>/gobutton.gif" /></p>
		</div>
	</div>

    

    
    <div class="left_col">
	    <p>Title</p>
    </div>
	<fieldset class="right_col">
    	<div class="default_mode">
			<p><label id="lbltitle" class="sansserif"><?= $userdetails['Title_UsersDetails']; ?></label></p>
	        <a class="imgedit" id="imgtitle" >Edit this</a>
        </div>
    	<div class="edit_mode">
            <p><input type="text" name="title"  value="<?= $userdetails['Title_UsersDetails'] != "" ? $userdetails['Title_UsersDetails'] : set_value('title'); ?>" style="width: 280px;" maxlength="8" class="inputbox" id="title"/></p>
            <p class="error"></p>
            <p><img class="imgsubmit" id="imgsubtitle" style="cursor: pointer;" src="<?=base_url()?>assets/website/images/buttons<?=INSTANCE_FILE_SUFFIX ?>/gobutton.gif" /></p>
        </div>
    </fieldset>
    
    
    <div class="left_col">
	    <p>Forename</p>
    </div>
	<fieldset class="right_col">    
    	<div class="default_mode">
            <p><label id="lblforename" class="sansserif"><?= $userdetails['FirstName_UsersDetails']; ?></label></p>
            <a class="imgedit" id="imgforename">Edit this</a>
        </div>
    	<div class="edit_mode">
            <p><input type="text" name="forename" value="<?= $userdetails['FirstName_UsersDetails'] != "" ? $userdetails['FirstName_UsersDetails'] : set_value('forename'); ?>" style="width: 280px;" maxlength="100" class="inputbox" id="forename"/></p>
            <p class="error"></p>
            <p><img class="imgsubmit" id="imgsubforename" style="cursor: pointer;" src="<?=base_url()?>assets/website/images/buttons<?=INSTANCE_FILE_SUFFIX ?>/gobutton.gif" /></p>
		</div>
	</fieldset>


	<div class="left_col">
	    <p>Surename</p>
    </div>
	<div class="right_col">   
    	<div class="default_mode">    
            <p><label id="lblsurname" class="sansserif"><?= $userdetails['LastName_UsersDetails']; ?></label></p>
            <a class="imgedit" id="imgsurname">Edit this<a/></p>
    	</div>
        <div class="edit_mode">            
            <p><input type="text" name="surname" value="<?= $userdetails['LastName_UsersDetails'] != "" ? $userdetails['LastName_UsersDetails'] : set_value('surname'); ?>" style="width: 280px;" maxlength="100" class="inputbox" id="surname"/></p>
            <p class="error"></p>
            <p><img class="imgsubmit" id="imgsubsurname" style="cursor: pointer;" src="<?=base_url()?>assets/website/images/buttons<?=INSTANCE_FILE_SUFFIX ?>/gobutton.gif" /></p>
    	</div>
    </div>
    
    
	<div class="left_col">  
		<p>Company Name</p>
    </div>
	<div class="right_col">      
    	<div class="default_mode">     
            <p><label id="lblcompanyname" class="sansserif"><?= $userdetails['CompanyName_UsersDetails']; ?></label></p>
            <a class="imgedit" id="imgcompanyname">Edit this</a>
		</div>
    	<div class="edit_mode">         
            <p><input type="text" name="companyname" value="<?= $userdetails['CompanyName_UsersDetails'] != "" ? $userdetails['CompanyName_UsersDetails'] : set_value('companyname'); ?>" style="width: 280px;" maxlength="200" class="inputbox" id="companyname"/></p>
            <p class="error"></p>
            <p><img class="imgsubmit" id="imgsubcompanyname" style="cursor: pointer;" src="<?=base_url()?>assets/website/images/buttons<?=INSTANCE_FILE_SUFFIX ?>/gobutton.gif" /></p>
		</div>
	</div>


	<div class="left_col">  
        <p>Address</p>
    </div>
	<div class="right_col">  
    	<div class="default_mode">       
            <p><label id="lblclientaddress" class="sansserif"><?= $userdetails['Address_UsersDetails']; ?></label></p>
            <a class="imgedit" id="imgclientaddress">Edit this</a>
        </div>
        <div class="edit_mode">   
            <p><textarea name="clientaddress" rows="4" style="width: 280px;" maxlength="250" class="inputbox" id="clientaddress"><?= $userdetails['Address_UsersDetails'] != "" ? $userdetails['Address_UsersDetails'] : set_value('clientaddress'); ?></textarea></p>
            <p class="error"></p>
            <p><img class="imgsubmit" id="imgsubclientaddress" style="cursor: pointer;" src="<?=base_url()?>assets/website/images/buttons<?=INSTANCE_FILE_SUFFIX ?>/gobutton.gif" /></p>
        </div>
	</div>
    

	<div class="left_col">  
	    <p>City</p>
    </div>
	<div class="right_col">    
		<div class="default_mode">      
            <p><label id="lblcity" class="sansserif"><?= $userdetails['City_UsersDetails']; ?></label></p>	
            <a class="imgedit" id="imgcity">Edit this</a>
        </div>
	    <div class="edit_mode">
            <p><input type="text" name="city" value="<?= $userdetails['City_UsersDetails'] != "" ? $userdetails['City_UsersDetails'] : set_value('city'); ?>" style="width: 280px;" maxlength="100" class="inputbox" id="city"/></p>
            <p class="error"></p>
            <p><img class="imgsubmit" id="imgsubcity" style="cursor: pointer;" src="<?=base_url()?>assets/website/images/buttons<?=INSTANCE_FILE_SUFFIX ?>/gobutton.gif" /></p>
        </div>
	</div>
    

	<div class="left_col">  
	    <p>State/Province/County</p>
    </div>
	<div class="right_col">  	
    	<div class="default_mode">
            <p><label id="lblstate_province_county" class="sansserif"><?= $userdetails['State_UsersDetails']; ?></label></p>	    
			<a class="imgedit" id="imgstate_province_county">Edit this</a>
        </div>
        <div class="edit_mode">    
            <p><input type="text" name="state_province_county" value="<?= $userdetails['State_UsersDetails'] != "" ? $userdetails['State_UsersDetails'] : set_value('state_province_county'); ?>" maxlength="100" style="width: 280px;" class="inputbox" id="state_province_county"/></p>
            <p class="error"></p>
            <p><img class="imgsubmit" id="imgsubstate_province_county" style="cursor: pointer;" src="<?=base_url()?>assets/website/images/buttons<?=INSTANCE_FILE_SUFFIX ?>/gobutton.gif" /></p>
            <!--<p><div id="map-canvas" style=" display: none; width: 400px; height: 300px;"></div></p>-->
		</div>
    </div>


	<div class="left_col">  
	    <p>ZIP/Postal Code</p>
    </div>
	<div class="right_col">  
		<div class="default_mode">    
            <p><label id="lblzip" class="sansserif"><?= $userdetails['ZipCode_UsersDetails']; ?></label></p>
            <a class="imgedit" id="imgzip">Edit this</a>
		</div>
		<div class="edit_mode">
            <p><input type="text" name="zip" value="<?= $userdetails['ZipCode_UsersDetails'] != "" ?  $userdetails['ZipCode_UsersDetails'] : set_value('zip'); ?>" style="width: 280px;" maxlength="50" class="inputbox" id="zip"/></p>
            <p class="error"></p>
            <p><img class="imgsubmit" id="imgsubzip" style="cursor: pointer;" src="<?=base_url()?>assets/website/images/buttons<?=INSTANCE_FILE_SUFFIX ?>/gobutton.gif" /></p>
        </div>
	</div>


	<div class="left_col">  
	    <p>Country</p>
    </div>
	<div class="right_col">  
		<div class="default_mode">    
            <p><label id="lblcountry" class="sansserif"><?= $userdetails['Country_UsersDetails']; ?></label></p>	
            <a class="imgedit" id="imgcountry">Edit this</a>
		</div>
        <div class="edit_mode">
            <p>
                <select name="country" style="width: 285px;" class="inputbox" id="country">
                    <option selected="selected" value="">SELECT YOUR COUNTRY</option>
                    <option <?=set_select('country', 'Afghanistan');?> value="Afghanistan">Afghanistan</option>
                    <option <?=set_select('country', 'Albania');?> value="Albania">Albania</option>
                    <option <?=set_select('country', 'Algeria');?> value="Algeria">Algeria</option>
                    <option <?=set_select('country', 'American Samoa');?> value="American Samoa">American Samoa</option>
                    <option <?=set_select('country', 'Andorra');?> value="Andorra">Andorra</option>
                    <option <?=set_select('country', 'Angola');?> value="Angola">Angola</option>
                    <option <?=set_select('country', 'Anguilla');?> value="Anguilla">Anguilla</option>
                    <option <?=set_select('country', 'Antarctica');?> value="Antarctica">Antarctica</option>
                    <option <?=set_select('country', 'Antigua And Barbuda');?> value="Antigua And Barbuda">Antigua And Barbuda</option>
                    <option <?=set_select('country', 'Argentina');?> value="Argentina">Argentina</option>
                    <option <?=set_select('country', 'Armenia');?> value="Armenia">Armenia</option>
                    <option <?=set_select('country', 'Aruba');?> value="Aruba">Aruba</option>
                    <option <?=set_select('country', 'Australia');?> value="Australia">Australia</option>
                    <option <?=set_select('country', 'Austria');?> value="Austria">Austria</option>
                    <option <?=set_select('country', 'Azerbaijan');?> value="Azerbaijan">Azerbaijan</option>
                    <option <?=set_select('country', 'Bahamas');?> value="Bahamas">Bahamas</option>
                    <option <?=set_select('country', 'Bahrain');?> value="Bahrain">Bahrain</option>
                    <option <?=set_select('country', 'Bangladesh');?> value="Bangladesh">Bangladesh</option>
                    <option <?=set_select('country', 'Barbados');?> value="Barbados">Barbados</option>
                    <option <?=set_select('country', 'Belarus');?> value="Belarus">Belarus</option>
                    <option <?=set_select('country', 'Belgium');?> value="Belgium">Belgium</option>
                    <option <?=set_select('country', 'Belize');?> value="Belize">Belize</option>
                    <option <?=set_select('country', 'Benin');?> value="Benin">Benin</option>
                    <option <?=set_select('country', 'Bermuda');?> value="Bermuda">Bermuda</option>
                    <option <?=set_select('country', 'Bhutan');?> value="Bhutan">Bhutan</option>
                    <option <?=set_select('country', 'Bolivia');?> value="Bolivia">Bolivia</option>
                    <option <?=set_select('country', 'Bosnia And Herzegovina');?> value="Bosnia And Herzegovina">Bosnia And Herzegovina</option>
                    <option <?=set_select('country', 'Botswana');?> value="Botswana">Botswana</option>
                    <option <?=set_select('country', 'AfgBouvet Islandhanistan');?> value="Bouvet Island">Bouvet Island</option>
                    <option <?=set_select('country', 'Brazil');?> value="Brazil">Brazil</option>
                    <option <?=set_select('country', 'British Indian Ocean Territory');?> value="British Indian Ocean Territory">British Indian Ocean Territory</option>
                    <option <?=set_select('country', 'Brunei Darussalam');?> value="Brunei Darussalam">Brunei Darussalam</option>
                    <option <?=set_select('country', 'Bulgaria');?> value="Bulgaria">Bulgaria</option>
                    <option <?=set_select('country', 'Burkina Faso');?> value="Burkina Faso">Burkina Faso</option>
                    <option <?=set_select('country', 'Burundi');?> value="Burundi">Burundi</option>
                    <option <?=set_select('country', 'Cambodia');?> value="Cambodia">Cambodia</option>
                    <option <?=set_select('country', 'Cameroon');?> value="Cameroon">Cameroon</option>
                    <option <?=set_select('country', 'Canada');?> value="Canada">Canada</option>
                    <option <?=set_select('country', 'Cape Verde');?> value="Cape Verde">Cape Verde</option>
                    <option <?=set_select('country', 'Cayman Islands');?> value="Cayman Islands">Cayman Islands</option>
                    <option <?=set_select('country', 'Central African Republic');?> value="Central African Republic">Central African Republic</option>
                    <option <?=set_select('country', 'Chad');?> value="Chad">Chad</option>
                    <option <?=set_select('country', 'Chile');?> value="Chile">Chile</option>
                    <option <?=set_select('country', 'China');?> value="China">China</option>
                    <option <?=set_select('country', 'Christmas Island');?> value="Christmas Island">Christmas Island</option>
                    <option <?=set_select('country', 'Cocos (keeling) Islands');?> value="Cocos (keeling) Islands">Cocos (keeling) Islands</option>
                    <option <?=set_select('country', 'Colo');?> value="Colombia">Colombia</option>
                    <option <?=set_select('country', 'Comoros');?> value="Comoros">Comoros</option>
                    <option <?=set_select('country', 'Congo');?> value="Congo">Congo</option>
                    <option <?=set_select('country', 'Congo, The Democratic Republic Of The');?> value="Congo, The Democratic Republic Of The">Congo, The Democratic Republic Of The</option>
                    <option <?=set_select('country', 'Cook Islands');?> value="Cook Islands">Cook Islands</option>
                    <option <?=set_select('country', 'Costa Rica');?> value="Costa Rica">Costa Rica</option>
                    <option <?=set_select('country', "Côte D'ivoire");?> value="Côte D'ivoire">Côte D'ivoire</option>
                    <option <?=set_select('country', 'Croatia');?> value="Croatia">Croatia</option>
                    <option <?=set_select('country', 'Cuba');?> value="Cuba">Cuba</option>
                    <option <?=set_select('country', 'Cyprus');?> value="Cyprus">Cyprus</option>
                    <option <?=set_select('country', 'Czech Republic');?> value="Czech Republic">Czech Republic</option>
                    <option <?=set_select('country', 'Denmark');?> value="Denmark">Denmark</option>
                    <option <?=set_select('country', 'Djibouti');?> value="Djibouti">Djibouti</option>
                    <option <?=set_select('country', 'Dominica');?> value="Dominica">Dominica</option>
                    <option <?=set_select('country', 'Dominican Republic');?> value="Dominican Republic">Dominican Republic</option>
                    <option <?=set_select('country', 'East Timor');?> value="East Timor">East Timor</option>
                    <option <?=set_select('country', 'Ecuador');?> value="Ecuador">Ecuador</option>
                    <option <?=set_select('country', 'Egypt');?> value="Egypt">Egypt</option>
                    <option <?=set_select('country', 'El Salvador');?> value="El Salvador">El Salvador</option>
                    <option <?=set_select('country', 'Equatorial Guinea');?> value="Equatorial Guinea">Equatorial Guinea</option>
                    <option <?=set_select('country', 'Eritrea');?> value="Eritrea">Eritrea</option>
                    <option <?=set_select('country', 'Estonia');?> value="Estonia">Estonia</option>
                    <option <?=set_select('country', 'Ethiopia');?> value="Ethiopia">Ethiopia</option>
                    <option <?=set_select('country', 'Falkland Islands (malvinas');?> value="Falkland Islands (malvinas)">Falkland Islands (malvinas)</option>
                    <option <?=set_select('country', 'Faroe Islands');?> value="Faroe Islands">Faroe Islands</option>
                    <option <?=set_select('country', 'Fiji');?> value="Fiji">Fiji</option>
                    <option <?=set_select('country', 'Finland');?> value="Finland">Finland</option>
                    <option <?=set_select('country', 'France');?> value="France">France</option>
                    <option <?=set_select('country', 'French Guiana');?> value="French Guiana">French Guiana</option>
                    <option <?=set_select('country', 'French Polynesia');?> value="French Polynesia">French Polynesia</option>
                    <option <?=set_select('country', 'French Southern Territories');?> value="French Southern Territories">French Southern Territories</option>
                    <option <?=set_select('country', 'Gabon');?> value="Gabon">Gabon</option>
                    <option <?=set_select('country', 'Gambia');?> value="Gambia">Gambia</option>
                    <option <?=set_select('country', 'Georgia');?> value="Georgia">Georgia</option>
                    <option <?=set_select('country', 'Germany');?> value="Germany">Germany</option>
                    <option <?=set_select('country', 'Ghana');?> value="Ghana">Ghana</option>
                    <option <?=set_select('country', 'Gibraltar');?> value="Gibraltar">Gibraltar</option>
                    <option <?=set_select('country', 'Greece');?> value="Greece">Greece</option>
                    <option <?=set_select('country', 'Greenland');?> value="Greenland">Greenland</option>
                    <option <?=set_select('country', 'Grenada');?> value="Grenada">Grenada</option>
                    <option <?=set_select('country', 'Guadeloupe');?> value="Guadeloupe">Guadeloupe</option>
                    <option <?=set_select('country', 'Guam');?> value="Guam">Guam</option>
                    <option <?=set_select('country', 'Guatemala');?> value="Guatemala">Guatemala</option>
                    <option <?=set_select('country', 'Guinea');?> value="Guinea">Guinea</option>
                    <option <?=set_select('country', 'Guinea-Bissau');?> value="Guinea-Bissau">Guinea-Bissau</option>
                    <option <?=set_select('country', 'Guyana');?> value="Guyana">Guyana</option>
                    <option <?=set_select('country', 'Haiti');?> value="Haiti">Haiti</option>
                    <option <?=set_select('country', 'Heard Island And Mcdonald Islands');?> value="Heard Island And Mcdonald Islands">Heard Island And Mcdonald Islands</option>
                    <option <?=set_select('country', 'Holy See (vatican City State)');?> value="Holy See (vatican City State)">Holy See (vatican City State)</option>
                    <option <?=set_select('country', 'Honduras');?> value="Honduras">Honduras</option>
                    <option <?=set_select('country', 'Hong Kong');?> value="Hong Kong">Hong Kong</option>
                    <option <?=set_select('country', 'Hungary');?> value="Hungary">Hungary</option>
                    <option <?=set_select('country', 'Icelandx');?> value="Iceland">Iceland</option>
                    <option <?=set_select('country', 'India');?> value="India">India</option>
                    <option <?=set_select('country', 'Indonesia');?> value="Indonesia">Indonesia</option>
                    <option <?=set_select('country', 'Iran, Islamic Republic Of');?> value="Iran, Islamic Republic Of">Iran, Islamic Republic Of</option>
                    <option <?=set_select('country', 'Iraq');?> value="Iraq">Iraq</option>
                    <option <?=set_select('country', 'Ireland');?> value="Ireland">Ireland</option>
                    <option <?=set_select('country', 'Israel');?> value="Israel">Israel</option>
                    <option <?=set_select('country', 'Italy');?> value="Italy">Italy</option>
                    <option <?=set_select('country', 'Jamaica');?> value="Jamaica">Jamaica</option>
                    <option <?=set_select('country', 'Japan');?> value="Japan">Japan</option>
                    <option <?=set_select('country', 'Jordan');?> value="Jordan">Jordan</option>
                    <option <?=set_select('country', 'Kazakstan');?> value="Kazakstan">Kazakstan</option>
                    <option <?=set_select('country', 'Kenya');?> value="Kenya">Kenya</option>
                    <option <?=set_select('country', 'Kiribati');?> value="Kiribati">Kiribati</option>
                    <option <?=set_select('country', "Korea, Democratic People's Republic Of");?> value="Korea, Democratic People's Republic Of">Korea, Democratic People's Republic Of</option>
                    <option <?=set_select('country', 'Korea, Republic Of');?> value="Korea, Republic Of">Korea, Republic Of</option>
                    <option <?=set_select('country', 'Kuwait');?> value="Kuwait">Kuwait</option>
                    <option <?=set_select('country', 'Kyrgyzstan');?> value="Kyrgyzstan">Kyrgyzstan</option>
                    <option <?=set_select('country', "Lao People's Democratic Republic");?> value="Lao People's Democratic Republic">Lao People's Democratic Republic</option>
                    <option <?=set_select('country', 'Latvia');?> value="Latvia">Latvia</option>
                    <option <?=set_select('country', 'Lebanon');?> value="Lebanon">Lebanon</option>
                    <option <?=set_select('country', 'Lesotho');?> value="Lesotho">Lesotho</option>
                    <option <?=set_select('country', 'Liberia');?> value="Liberia">Liberia</option>
                    <option <?=set_select('country', 'Libyan Arab Jamahiriya');?> value="Libyan Arab Jamahiriya">Libyan Arab Jamahiriya</option>
                    <option <?=set_select('country', 'Liechtenstein');?> value="Liechtenstein">Liechtenstein</option>
                    <option <?=set_select('country', 'Lithuania');?> value="Lithuania">Lithuania</option>
                    <option <?=set_select('country', 'Luxembourg');?> value="Luxembourg">Luxembourg</option>
                    <option <?=set_select('country', 'Macau');?> value="Macau">Macau</option>
                    <option <?=set_select('country', 'Macedonia');?> value="Macedonia">Macedonia</option>
                    <option <?=set_select('country', 'Madagascar');?> value="Madagascar">Madagascar</option>
                    <option <?=set_select('country', 'Malawi');?> value="Malawi">Malawi</option>
                    <option <?=set_select('country', 'Malaysia');?> value="Malaysia">Malaysia</option>
                    <option <?=set_select('country', 'Maldives');?> value="Maldives">Maldives</option>
                    <option <?=set_select('country', 'Mali');?> value="Mali">Mali</option>
                    <option <?=set_select('country', 'Malta');?> value="Malta">Malta</option>
                    <option <?=set_select('country', 'Marshall Islands');?> value="Marshall Islands">Marshall Islands</option>
                    <option <?=set_select('country', 'Martinique');?> value="Martinique">Martinique</option>
                    <option <?=set_select('country', 'Mauritania');?> value="Mauritania">Mauritania</option>
                    <option <?=set_select('country', 'Mauritius');?> value="Mauritius">Mauritius</option>
                    <option <?=set_select('country', 'Mayotte');?> value="Mayotte">Mayotte</option>
                    <option <?=set_select('country', 'Mexico');?> value="Mexico">Mexico</option>
                    <option <?=set_select('country', 'Micronesia, Federated States Of');?> value="Micronesia, Federated States Of">Micronesia, Federated States Of</option>
                    <option <?=set_select('country', 'Moldova, Republic Of');?> value="Moldova, Republic Of">Moldova, Republic Of</option>
                    <option <?=set_select('country', 'Monaco');?> value="Monaco">Monaco</option>
                    <option <?=set_select('country', 'Mongolia');?> value="Mongolia">Mongolia</option>
                    <option <?=set_select('country', 'Montserrat');?> value="Montserrat">Montserrat</option>
                    <option <?=set_select('country', 'Morocco');?> value="Morocco">Morocco</option>
                    <option <?=set_select('country', 'Mozambique');?> value="Mozambique">Mozambique</option>
                    <option <?=set_select('country', 'Myanmar');?> value="Myanmar">Myanmar</option>
                    <option <?=set_select('country', 'Namibia');?> value="Namibia">Namibia</option>
                    <option <?=set_select('country', 'Nauru');?> value="Nauru">Nauru</option>
                    <option <?=set_select('country', 'Nepal');?> value="Nepal">Nepal</option>
                    <option <?=set_select('country', 'Netherlands');?> value="Netherlands">Netherlands</option>
                    <option <?=set_select('country', 'Netherlands Antilles');?> value="Netherlands Antilles">Netherlands Antilles</option>
                    <option <?=set_select('country', 'New Caledonia');?> value="New Caledonia">New Caledonia</option>
                    <option <?=set_select('country', 'New Zealand');?> value="New Zealand">New Zealand</option>
                    <option <?=set_select('country', 'Nicaragua');?> value="Nicaragua">Nicaragua</option>
                    <option <?=set_select('country', 'Niger');?> value="Niger">Niger</option>
                    <option <?=set_select('country', 'Nigeria');?> value="Nigeria">Nigeria</option>
                    <option <?=set_select('country', 'Niue');?> value="Niue">Niue</option>
                    <option <?=set_select('country', 'Norfolk Island"');?> value="Norfolk Island">Norfolk Island</option>
                    <option <?=set_select('country', 'Northern Mariana Islands');?> value="Northern Mariana Islands">Northern Mariana Islands</option>
                    <option <?=set_select('country', 'Norway');?> value="Norway">Norway</option>
                    <option <?=set_select('country', 'Oman');?> value="Oman">Oman</option>
                    <option <?=set_select('country', 'Pakistan');?> value="Pakistan">Pakistan</option>
                    <option <?=set_select('country', 'Palau');?> value="Palau">Palau</option>
                    <option <?=set_select('country', 'Palestinian Territory, Occupied');?> value="Palestinian Territory, Occupied">Palestinian Territory, Occupied</option>
                    <option <?=set_select('country', 'Panama');?> value="Panama">Panama</option>
                    <option <?=set_select('country', 'Papua New Guinea');?> value="Papua New Guinea">Papua New Guinea</option>
                    <option <?=set_select('country', 'Paraguay');?> value="Paraguay">Paraguay</option>
                    <option <?=set_select('country', 'Peru');?> value="Peru">Peru</option>
                    <option <?=set_select('country', 'Philippines');?> value="Philippines">Philippines</option>
                    <option <?=set_select('country', 'Pitcairn');?> value="Pitcairn">Pitcairn</option>
                    <option <?=set_select('country', 'Poland');?> value="Poland">Poland</option>
                    <option <?=set_select('country', 'Portugal');?> value="Portugal">Portugal</option>
                    <option <?=set_select('country', 'Puerto Rico');?> value="Puerto Rico">Puerto Rico</option>
                    <option <?=set_select('country', 'Qatar');?> value="Qatar">Qatar</option>
                    <option <?=set_select('country', 'Réunion');?> value="Réunion">Réunion</option>
                    <option <?=set_select('country', 'Romania');?> value="Romania">Romania</option>
                    <option <?=set_select('country', 'Russian Federation');?> value="Russian Federation">Russian Federation</option>
                    <option <?=set_select('country', 'Rwanda');?> value="Rwanda">Rwanda</option>
                    <option <?=set_select('country', 'Saint Helenax');?> value="Saint Helena">Saint Helena</option>
                    <option <?=set_select('country', 'Saint Kitts And Nevis');?> value="Saint Kitts And Nevis">Saint Kitts And Nevis</option>
                    <option <?=set_select('country', 'Saint Lucia');?> value="Saint Lucia">Saint Lucia</option>
                    <option <?=set_select('country', 'Saint Pierre And Miquelon');?> value="Saint Pierre And Miquelon">Saint Pierre And Miquelon</option>
                    <option <?=set_select('country', 'Saint Vincent And The Grenadines');?> value="Saint Vincent And The Grenadines">Saint Vincent And The Grenadines</option>
                    <option <?=set_select('country', 'Samoa');?> value="Samoa">Samoa</option>
                    <option <?=set_select('country', 'San Marino');?> value="San Marino">San Marino</option>
                    <option <?=set_select('country', 'Sao Tome And Principe');?> value="Sao Tome And Principe">Sao Tome And Principe</option>
                    <option <?=set_select('country', 'Saudi Arabia');?> value="Saudi Arabia">Saudi Arabia</option>
                    <option <?=set_select('country', 'Senegal');?> value="Senegal">Senegal</option>
                    <option <?=set_select('country', 'Serbia &amp; Montenegro');?> value="Serbia &amp; Montenegro">Serbia & Montenegro</option>
                    <option <?=set_select('country', 'Seychelles');?> value="Seychelles">Seychelles</option>
                    <option <?=set_select('country', 'Sierra Leone');?> value="Sierra Leone">Sierra Leone</option>
                    <option <?=set_select('country', 'Singapore');?> value="Singapore">Singapore</option>
                    <option <?=set_select('country', 'Slovakia');?> value="Slovakia">Slovakia</option>
                    <option <?=set_select('country', 'Slovenia');?> value="Slovenia">Slovenia</option>
                    <option <?=set_select('country', 'Solomon Islands');?> value="Solomon Islands">Solomon Islands</option>
                    <option <?=set_select('country', 'Somalia');?> value="Somalia">Somalia</option>
                    <option <?=set_select('country', 'South Africa');?> value="South Africa">South Africa</option>
                    <option <?=set_select('country', 'South Georgia And The South Sandwich Islands');?> value="South Georgia And The South Sandwich Islands">South Georgia And The South Sandwich Islands</option>
                    <option <?=set_select('country', 'Spain');?> value="Spain">Spain</option>
                    <option <?=set_select('country', 'Sri Lanka');?> value="Sri Lanka">Sri Lanka</option>
                    <option <?=set_select('country', 'Sudan');?> value="Sudan">Sudan</option>
                    <option <?=set_select('country', 'Suriname');?> value="Suriname">Suriname</option>
                    <option <?=set_select('country', 'Svalbard And Jan Maye');?> value="Svalbard And Jan Maye">Svalbard And Jan Mayen</option>
                    <option <?=set_select('country', 'Swaziland');?> value="Swaziland">Swaziland</option>
                    <option <?=set_select('country', 'Sweden');?> value="Sweden">Sweden</option>
                    <option <?=set_select('country', 'Switzerland');?> value="Switzerland">Switzerland</option>
                    <option <?=set_select('country', 'Syrian Arab Republic');?> value="Syrian Arab Republic">Syrian Arab Republic</option>
                    <option <?=set_select('country', 'Taiwan, Province Of China');?> value="Taiwan, Province Of China">Taiwan, Province Of China</option>
                    <option <?=set_select('country', 'Tajikistan');?> value="Tajikistan">Tajikistan</option>
                    <option <?=set_select('country', 'Tanzania, United Republic Of');?> value="Tanzania, United Republic Of">Tanzania, United Republic Of</option>
                    <option <?=set_select('country', 'Thailand');?> value="Thailand">Thailand</option>
                    <option <?=set_select('country', 'Togo');?> value="Togo">Togo</option>
                    <option <?=set_select('country', 'Tokelau');?> value="Tokelau">Tokelau</option>
                    <option <?=set_select('country', 'Tonga');?> value="Tonga">Tonga</option>
                    <option <?=set_select('country', 'Trinidad And Tobago');?> value="Trinidad And Tobago">Trinidad And Tobago</option>
                    <option <?=set_select('country', 'Tunisia');?> value="Tunisia">Tunisia</option>
                    <option <?=set_select('country', 'Turkey');?> value="Turkey">Turkey</option>
                    <option <?=set_select('country', 'Turkmenistan');?> value="Turkmenistan">Turkmenistan</option>
                    <option <?=set_select('country', 'Turks And Caicos Islands');?> value="Turks And Caicos Islands">Turks And Caicos Islands</option>
                    <option <?=set_select('country', 'Tuvalu');?> value="Tuvalu">Tuvalu</option>
                    <option <?=set_select('country', 'Uganda');?> value="Uganda">Uganda</option>
                    <option <?=set_select('country', 'Ukraine');?> value="Ukraine">Ukraine</option>
                    <option <?=set_select('country', 'United Arab Emirates');?> value="United Arab Emirates">United Arab Emirates</option>
                    <option <?=set_select('country', 'United Kingdom');?> value="United Kingdom">United Kingdom</option>
                    <option <?=set_select('country', 'United States');?> value="United States">United States</option>
                    <option <?=set_select('country', 'United States Minor Outlying Islands');?> value="United States Minor Outlying Islands">United States Minor Outlying Islands</option>
                    <option <?=set_select('country', 'Uruguay');?> value="Uruguay">Uruguay</option>
                    <option <?=set_select('country', 'Uzbekistan');?> value="Uzbekistan">Uzbekistan</option>
                    <option <?=set_select('country', 'Vanuatu');?> value="Vanuatu">Vanuatu</option>
                    <option <?=set_select('country', 'Vatican City State');?> value="Vatican City State">Vatican City State</option>
                    <option <?=set_select('country', 'Venezuela');?> value="Venezuela">Venezuela</option>
                    <option <?=set_select('country', 'Viet Nam');?> value="Viet Nam">Viet Nam</option>
                    <option <?=set_select('country', 'Virgin Islands, British');?> value="Virgin Islands, British">Virgin Islands, British</option>
                    <option <?=set_select('country', 'Virgin Islands, U.S.');?> value="Virgin Islands, U.S.">Virgin Islands, U.S.</option>
                    <option <?=set_select('country', 'Wallis And Futunax');?> value="Wallis And Futuna">Wallis And Futuna</option>
                    <option <?=set_select('country', 'Western Sahara');?> value="Western Sahara">Western Sahara</option>
                    <option <?=set_select('country', 'Yemen');?> value="Yemen">Yemen</option>
                    <option <?=set_select('country', 'Zaire (congo, The Democratic Republic Of The)');?> value="Zaire (congo, The Democratic Republic Of The)">Zaire (congo, The Democratic Republic Of The)</option>
                    <option <?=set_select('country', 'Zambia');?> value="Zambia">Zambia</option>
                    <option <?=set_select('country', 'Zimbabwe');?> value="Zimbabwe">Zimbabwe</option>
                </select>
            </p>
            <p class="error"></p>
            <p><img class="imgsubmit" id="imgsubcountry" style="cursor: pointer;" src="<?=base_url()?>assets/website/images/buttons<?=INSTANCE_FILE_SUFFIX ?>/gobutton.gif" /></p>    
        </div>
	</div>


	<div class="left_col">  
	    <p>Phone Number</p>
    </div>
	<div class="right_col">  
		<div class="default_mode">    
            <p><label id="lblphonenumber" class="sansserif"><?= $userdetails['DaytimePhone_UsersDetails']; ?></label></p>	            
			<a class="imgedit" id="imgphonenumber">Edit this</a>
        </div>
		<div class="edit_mode">
            <p><input type="text" name="phonenumber" value="<?= $userdetails['DaytimePhone_UsersDetails'] != "" ? $userdetails['DaytimePhone_UsersDetails'] : set_value('phonenumber'); ?>" maxlength="30" style="width: 280px;" class="inputbox" id="phonenumber"/></p>
            <p class="error"></p>
            <p><img class="imgsubmit" id="imgsubphonenumber" style="cursor: pointer;" src="<?=base_url()?>assets/website/images/buttons<?=INSTANCE_FILE_SUFFIX ?>/gobutton.gif" /></p>
        </div>
	</div>


	<div class="left_col">  
	    <p>Mobile Phone</p>
    </div>
	<div class="right_col">  
		<div class="default_mode">
            <p><label id="lblmobile" class="sansserif"><?= $userdetails['Mobile_UsersDetails']; ?></label></p>		
            <a class="imgedit" id="imgmobile">Edit this</a>        
		</div>
        <div class="edit_mode">
            <p><input type="text" name="mobile" value="<?= $userdetails['Mobile_UsersDetails'] != "" ? $userdetails['Mobile_UsersDetails'] : set_value('mobile'); ?>" maxlength="30" style="width: 280px;" class="inputbox" id="mobile"/></p>
            <p class="error"></p>
            <p><img class="imgsubmit" id="imgsubmobile" style="cursor: pointer;" src="<?=base_url()?>assets/website/images/buttons<?=INSTANCE_FILE_SUFFIX ?>/gobutton.gif" /></p>
		</div>
	</div>


	<!--
	<script  type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDIwyO9AN08SbdI7aiwMCWXPZwtuNASUHk&sensor=true"></script>    
    <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=places&sensor=false"></script>
	-->

	<script>
			
		jQuery('.imgsubmit').click(function(){

			var fieldname = this.id.replace('imgsub','');
			//alert(fieldname);

			if(fieldname != 'email')
			{

				jQuery.ajax({
					type: 'POST',
					cache: false,
					url: '<?=site_url()?>' + "/insider/updateprofile",
					data: fieldname + '=' + jQuery("#" + fieldname).val() + "&fieldname=" + fieldname + "&fieldvalue=" 
					+ jQuery("#" + fieldname).val(),
					dataType: 'json',
					success: function(data) {
						if(!data.success)
						{
							jQuery("#lbl"+fieldname).parents(".right_col").find('.error').html(data.message);
						}
						else
						{
							//alert(jQuery("#lbl" + fieldname).html() + jQuery("#" + fieldname).val());
							jQuery("#lbl" + fieldname).html(jQuery("#" + fieldname).val());
							//jQuery(".inputbox").css("display", "none");
							//jQuery(".imgedit").css("display", "block");
							//jQuery(".imgsubmit").css("display", "none");
							//jQuery("label").css("display", "block");	

							jQuery("#lbl"+fieldname).parents(".right_col").find('.default_mode').show();
							jQuery("#lbl"+fieldname).parents(".right_col").find('.edit_mode').hide();							
						}
					},
					error: function(a, b, c)
					{
						alert("ERROR: " + a.responseText);
					}
				});
			}
			else
			{
				jQuery.ajax({
					type: 'POST',
					cache: false,
					url: '<?=site_url()?>' + "/insider/updateprofile",
					data: fieldname + "2" + '=' + jQuery("#" + fieldname + "2").val() + "&" + fieldname + '=' + jQuery("#" + fieldname).val() + "&fieldname=" + fieldname + "&fieldvalue=" 
					+ jQuery("#" + fieldname).val(),
					dataType: 'json',
					success: function(data) {
						if(!data.success)
						{
							jQuery("#lbl"+fieldname).parents(".right_col").find('.error').html(data.message);
						}
						else
						{
							//alert(jQuery("#lbl" + fieldname).html() + jQuery("#" + fieldname).val());
							jQuery("#lbl" + fieldname).html(jQuery("#" + fieldname).val());
							//jQuery(".inputbox").css("display", "none");
							//jQuery(".imgedit").css("display", "block");
							//jQuery(".imgsubmit").css("display", "none");
							//jQuery("label").css("display", "block");	

							jQuery("#lbl"+fieldname).parents(".right_col").find('.default_mode').show();
							jQuery("#lbl"+fieldname).parents(".right_col").find('.edit_mode').hide();							
						}
					},
					error: function(a, b, c)
					{
						alert("ERROR: " + a.responseText);
					}
				});				
			}
		});
			
		jQuery('.imgedit').click(function(){
			
			jQuery(".right_col .default_mode").show();
			jQuery(".right_col .edit_mode").hide();			
			jQuery(this).parents(".right_col").find(".default_mode").hide();
			jQuery(this).parents(".right_col").find(".edit_mode").show();			
			
//			jQuery(".inputbox").css("display", "none");
//			jQuery(".imgedit").css("display", "block");
//			jQuery(".imgsubmit").css("display", "none");
//			jQuery("label").css("display", "block");			

			var fieldname = this.id.replace('img','');
			
//			jQuery('#lbl' + fieldname).css("display","none");
//			jQuery('#' + fieldname).css("display","block");
//			jQuery('#img' + fieldname).css("display","none");
//			jQuery('#imgsub' + fieldname).css("display","block");
			
			/*
			if(fieldname == 'state_province_county')
			{
				jQuery("#map-canvas").css("display","block");
				var map;

				function initialize() {
					var mapOptions = {
						center: new google.maps.LatLng(52.48278,-1.168213),
						zoom: 1,
						mapTypeId: google.maps.MapTypeId.HYBRID
					};
					map = new google.maps.Map(document.getElementById("map-canvas"),
						mapOptions);
				}					
						
				var input = document.getElementById('state_province_county');
				var options = {
				  types: ['(cities)'],
				  //componentRestrictions: {country: 'pt'}
				};
				
				autocomplete = new google.maps.places.Autocomplete(input, options);						
					
				initialize();
									
				google.maps.event.addListener(autocomplete, 'place_changed', function() {
					var place = autocomplete.getPlace();
					if (!place.geometry) {
						// Inform the user that a place was not found and return.
						return;
					}
					
					  // If the place has a geometry, then present it on a map.
					if (place.geometry.viewport) {
						// Use the viewport if it is provided.
						map.fitBounds(place.geometry.viewport);
					} else {
						// Otherwise use the location and set a chosen zoom level.
						map.setCenter(place.geometry.location);
						map.setZoom(18);
					}
					var image = {
						url: place.icon,
						size: new google.maps.Size(71, 71),
						origin: new google.maps.Point(0, 0),
						anchor: new google.maps.Point(17, 34),
						scaledSize: new google.maps.Size(25, 25)
					};
					marker.setIcon(image);
					marker.setPosition(place.geometry.location);
					
					infowindow.setContent(place.name);
					infowindow.open(map, marker);
				});                
		
			}*/
			
		});
	
	</script>

</div>	
</form>







            <div class="widget">    
        <!-- AddThis Button BEGIN -->
<a href="http://www.addthis.com/bookmark.php?v=250" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a360d252cc10889"></script>
<script type="text/javascript">
var addthis_exclude = 'email, print';
</script>

<!-- AddThis Button END -->
</div>
        
    </div>
  </div>
  </div>
  
  
